<?php declare(strict_types=1);
/**
 * Created by IntelliJ IDEA
 * Author: 张伯发
 * Date  : 2019/11/19
 * Time  : 15:33
 */

namespace App\Validator\Members;


use Swoft\Validator\Annotation\Mapping\IsString;
use Swoft\Validator\Annotation\Mapping\Length;
use Swoft\Validator\Annotation\Mapping\NotEmpty;
use Swoft\Validator\Annotation\Mapping\Validator;
use Xiaoproject\Common\Language\L;

/**
 * Class MembersRegisterValidator
 * @author 张伯发 2019/11/19 15:33
 * @Validator(name="MembersRegisterValidator")
 */
class MembersRegisterValidator
{
    /**
     * @NotEmpty(message="username not null")
     * @Length(min=11,max=11,message="username length must be 11 digits ")
     * @IsString()
     * @var string
     */
    protected $username;

    /**
     * @NotEmpty(message="password not null")
     * @IsString()
     * @var string
     */
    protected $password;

    /**
     * @NotEmpty(message="verify code not null")
     * @Length(min=6,max=6,message="verify code length must be 6 digits ")
     * @IsString(name="verify_code")
     * @var string
     */
    protected $verifyCode;

}
